import Vue from 'vue'
import VueRouter from 'vue-router'

import  HomePage from '@/views/HomePage.vue'
import  SortPage from '@/views/SortPage.vue'
import  OrderPage from '@/views/OrderPage.vue'
import  MyPage from '@/views/MyPage.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes:[
    {
      path:'/',
      redirect:'/home'
    },
    {
      path:'/home',
      component: HomePage
    },
    {
      path:'/sort',
      component: SortPage
    },
    {
      path:'/order',
      component: OrderPage
    },
    {
      path:'/my',
      component: MyPage
    },
  ]
})


export default router
